﻿<%@ Page Language="C#" MasterPageFile="~/Share/MainPage.Master" AutoEventWireup="true"
    CodeBehind="MonthSchedule.aspx.cs" Inherits="AKMII.DMRA.Web.Share.WebForm1" Title="Agent Lead Order & Delivery System" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        #MonthContainnerDiv
        {
            width: 736px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="InfoContent" runat="server">

    <script type="text/javascript">
    function DisplayTooltip(value)
    {
        document.getElementById("divTooltip").style.display=value;
    }
    </script>

    <br />
    <div class="leadinfo" style="position: relative">
        <div>
            Your
            <label style="color: Blue; cursor: pointer; text-decoration: underline;" onmouseover="DisplayTooltip('');">
                target number</label>
            of active & lapse leads are
            <label id="lbTtotal">
                <%=GetActiveLeadCount()%></label>.<br />
            <br />
            You currently have
            <asp:Label ForeColor="Red" ID="lbCartAgent" runat="server" Text="0"></asp:Label>
            active & lapse leads in your cart.<br />
            <br />
            You should select
            <asp:Label ForeColor="Red" ID="lblRemain" runat="server" Text="0"></asp:Label>
            more active & lapse leads to reach your target.<br />
            <br />
            Your totals so far are:<br />
            <asp:Label ForeColor="Red" ID="lbActiveLead" runat="server" Text="0"></asp:Label>
            Active;<br />
            <asp:Label ForeColor="Red" ID="lbLapseLead" runat="server" Text="0"></asp:Label>
            Lapsed;
            <br />
            <asp:Label ForeColor="Red" ID="lbNeighborLead" runat="server" Text="0"></asp:Label>
            Neighbor;
            <br />
            <asp:Label ForeColor="Red" ID="lbBussinessLead" runat="server" Text="0"></asp:Label>
            Business<br />
        </div>
        <asp:HiddenField ID="lbAllLeads" runat="server" />
        <div id="divTooltip" onmouseout="DisplayTooltip('none');" style="background-color: #E1EEF6;
            position: absolute; top: 15px; display: none; border: 1px #000000 solid; padding-left: 5px">
            Target number of leads are based on active leads plus lapse leads ( neighbor and
            business are not – although you still get them).<br />
            Agents can work on average 50 active & lapse leads per week.<br />
            As an example, an MD has Y amount of agents working under him.<br />
            Therefore (50*num of weeks in the month)*Y=Z (where Z is the target number of leads)<br />
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LinkContent" runat="server">
    <a id="breadcrumb_home" href="#">Home</a>&nbsp;&gt;&nbsp;<a id="A2" href="javascript:void(0);">MD Lead 
        Order Schedule</a>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="DetailsContent" runat="server">
   
        <asp:GridView ID="GdvMonthSchedule" Width="100%" CssClass="leadtable" runat="server"
            AutoGenerateColumns="False" BorderWidth="0px" PageSize="20">
            <HeaderStyle CssClass="ItemListHeaderRow" BorderWidth="1px" />
            <Columns>
                <asp:TemplateField HeaderText="Month" HeaderStyle-CssClass="BorderLeft22" ItemStyle-CssClass="subheader">
                    <ItemTemplate>
                        <asp:Label runat="server" Text='<%#GetMonthName(Eval("MonthName").ToString())%>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle CssClass="BorderLeft"></HeaderStyle>
                    <ItemStyle CssClass="subheader"></ItemStyle>
                </asp:TemplateField>
                <asp:BoundField DataField="CutOffStartDate" HeaderText="StartDate" HeaderStyle-CssClass="BorderLeft"
                    ItemStyle-CssClass="subheader" DataFormatString="{0:MM-dd-yyyy}">
                    <HeaderStyle CssClass="BorderLeft"></HeaderStyle>
                    <ItemStyle CssClass="subheader"></ItemStyle>
                </asp:BoundField>
                <asp:BoundField DataField="CutOffEndDate" HeaderText="EndDate" HeaderStyle-CssClass="BorderLeft"
                    ItemStyle-CssClass="subheader" DataFormatString="{0:MM-dd-yyyy}">
                    <HeaderStyle CssClass="BorderLeft"></HeaderStyle>
                    <ItemStyle CssClass="subheader"></ItemStyle>
                </asp:BoundField>
            </Columns>
            <EmptyDataTemplate>
                <table cellpadding="0" width="100%" cellspacing="0" border="1" id="ItemListContentTable"
                    class="leadtable">
                    <tr class="ItemListHeaderRow">
                        <th class="BorderLeft">
                            Month
                        </th>
                        <th class="BorderLeft">
                            StartDate
                        </th>
                        <th class="BorderLeft">
                            EndDate
                        </th>
                    </tr>
                    <tr>
                        <td colspan="25" style="height: 40px;" valign="middle" align="center">
                            There is no record.
                        </td>
                    </tr>
                </table>
            </EmptyDataTemplate>
        </asp:GridView>

</asp:Content>
